# LIBDBOOK2 build system
# $Id: CMakeLists.txt 99 2010-01-17 19:18:41Z vext01 $

OPTION(BUILD_SHARED_LIBS "turn OFF for .a libs" ON)
ADD_LIBRARY(dbook
    dbook.c
    filters.c
    bkend_dbook_org.c
    isbn_utils.c
)

TARGET_LINK_LIBRARIES(dbook xml2)
SET_TARGET_PROPERTIES(dbook PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(dbook 
PROPERTIES
	SOVERSION 0.1
	VERSION 0.1
)

INSTALL(FILES dbook.h DESTINATION include)

INSTALL(TARGETS dbook
	LIBRARY DESTINATION lib
)

